package com.digital.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class knife4jConfiguration
{
    @Bean
    public OpenAPI customOpenAPI()
    {
        Info info = new Info()
                .title("数字校园接口文档")
                .version("1.0")
                .description("数字校园接口文档");
        OpenAPI openAPI = new OpenAPI()
                .info(info);
        return openAPI;
    }
}